From d9f6127d68074a77a0ad93372ade4fdacb24c44f Mon Sep 17 00:00:00 2001 From: tsteven4 <13596209+tsteven4@users.noreply.github.com> Date: Fri, 19 Jul 2024 05:53:30 -0600 Subject: [PATCH] don't send links with GPS_A200_Send. (#1295) --- jeeps/gpsapp.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/jeeps/gpsapp.cc b/jeeps/gpsapp.cc index 5a091e874..4b1441ed8 100644 --- a/jeeps/gpsapp.cc +++ b/jeeps/gpsapp.cc @@ -3152,9 +3152,6 @@ int32_t GPS_A200_Send(const char* port, GPS_PWay* way, int32_t n) gpsdevh* fd; GPS_Packet tra; GPS_Packet rec; - int32_t i; - int32_t len; - US method; if (!GPS_Device_On(port,&fd)) { return gps_errno; @@ -3172,7 +3169,10 @@ int32_t GPS_A200_Send(const char* port, GPS_PWay* way, int32_t n) } - for (i=0; iisrte) { method = LINK_ID[gps_link_type].Pid_Rte_Hdr; @@ -3190,6 +3190,8 @@ int32_t GPS_A200_Send(const char* port, GPS_PWay* way, int32_t n) GPS_Error("A200_Send: Unknown route protocol"); return PROTOCOL_ERROR; } + } else if (way[i]->islink) { + continue; // links not supported. can cause "Route Waypoint was Deleted" and "Received an Invalid WPT" on device. } else { method = LINK_ID[gps_link_type].Pid_Rte_Wpt_Data; -- 2.30.2